import sys
import json
import io
from chat_lm_mini_chinese import ChatLMMiniChinese

sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding="utf-8")
# print('问题', sys.argv[1])
if len(sys.argv) > 1:

  text = ChatLMMiniChinese().question(sys.argv[1])
  print(text[0])
else:
  print("发生错误!")